package com.clkj.xiuzheng.service.shangcheng;

import com.clkj.xiuzheng.pojo.shangcheng.*;
import com.github.pagehelper.PageInfo;

import javax.servlet.http.HttpServletRequest;
import java.util.List;
import java.util.Map;

public interface ScUserService {
    void addAddress(Address address);

    PageInfo getUserList(Integer companyId, Integer pageSize, Integer pageNum,String userName,String startTime,String endTime);

    PageInfo getManagerList(Integer companyId, Integer pageSize, Integer pageNum, String userName, String startTime, String endTime);

    void addIdentity(Identity identity);

    Map userLogin(String code,Integer companyId,Integer parentId,Integer shareId);

    List<Identity> getIdentityByCompanyId(Integer companyId);

    void removeIdentityMenuById(String IndentityInfoIds);

    List<Identity> getIdentityMenuById(Integer identityId);

    List<Menu> getMenuList();

    List<ProductCompany> getCompanyList();

    PageInfo getpromoterList(String userName,Integer companyId ,Integer pageSize, Integer pageNum);

    Map listMyUser(Integer userId, Integer flag, HttpServletRequest request);

    void addCommission(Integer userId, Double grantMoney, String note);

    List<UserCommDetail> listCommission(Integer userId);

    void addApply(Integer userId,Integer companyId);

    void applyPromoter(Integer userId, String applyId, Integer companyId, HttpServletRequest request);

    SUser updateUser(Integer userId,String userName,String userPhone,HttpServletRequest request);

    Map listMyCommission(Integer userId,Integer companyId);

    Map listMyAccount(Integer userId);

    Map exchangeUserType(Integer userId,String userName,String userPhone,String code);

    void deleteAddress(Integer addressId);

    void setAddress(Integer addressId,Integer userId);

    Object  listMemberNum(Integer userId);

    Map getMoney(Integer userId,String openId,String userName,String money);

    void PromoterDown(Integer userId, Integer companyId, String note);


    SUser newGetUser(Integer userId);
    void PromoterDownApply(Integer userId, String applyId, Integer companyId);
}
